const path = require("path");
const { merge } = require("webpack-merge");
const webpackConfigBase = require("./webpack.base.config.js");
const openBrowserPlugin = require('open-browser-webpack-plugin');

const webpackConfigDev = {
    mode: 'development',
    plugins: [
        new openBrowserPlugin({ url: "http://localhost:9005" })
    ],
    devServer: {
        historyApiFallback: true,
        contentBase: path.join(__dirname, "../public"),
        hot: true,
        host: '0.0.0.0',
        inline: true,
        port: 9005,
    }
}
module.exports = merge(webpackConfigBase, webpackConfigDev);